#拼多多评价配置

import json

# 获取配置地址
cfg = json.loads(open(r'./config.ini',mode='r').read())

# 配置域名
domain_url = {
    # 拼多多评价接口
    'comments_url':'https://mms.pinduoduo.com/saturn/reviews/list',
    # 返回评论接口
    'return_comments_url': cfg['domain'] + '/index.php/Api/Index/updateEvaluation',
    # 返回cookie接口
    'return_cookie_url': cfg['domain'] + '/index.php/Api/index/logins',
    # 验证状态
    'check_status_url':cfg['domain'] + '/index.php/api/index/sendcookie',
    # 回调接口
    'callback_task_url':cfg['domain'] + '/index.php/api/index/resettime',
    # 配置MessageQueue
    'mq_config':cfg['mq']

}


# 配置环境

extAPP = {

    'threadsNum':cfg['max_threads']
}

# 配置请求头
header = {

        "accept": "application/json, text/javascript, */*; q=0.01",
        "accept-encoding": "gzip, deflate, br",
        "accept-language": "zh-CN,zh;q=0.9",
        "anti-content":"0anAfxn5HycYY9TaruIfk5Zge0T4MsPKuDjAIyIVJK0sDd2YF9TgdUUfGwADjSpjihgqcm5PQg9QWpEZ4n66Ss63llo2oJNPS8YMbMWWqJH9G0ioslYFqeEIjySRJfMknQEClJTW9mD5hS-Qx0JEWG0solpi2BrWTwR9YQq-emjpvzRmOjZ1fY1tblvncsP7DC8zZAy1NEZ7JU-Y3vI1n14ce3MeHi00k8Qr9fF35FVMPTYEPwgF9_UAjSkdw_s7ENL9Emj_-nU9DagwE3bfyZ_g2DBqfu4iSxaz9CVedaMCkPXz-CVIejwhp0x2BY7nOqRV0v1y6tSNy-A4bmb6c3XqpN3diQ8ProuASenqEXqhl72Xp3h1FxnvpqPBKWwYtgmuoehwHlIgbaMmJ7L_HLyXA3F_yYSni_lbN0P3q1gihZp-PFFN-rXpO4cLUx1bscbcn0FS5AuAtQuKQuvyirUckCiqtNGRRG-Jjp1h3YGJyJyRi8i4qjhAhC",
        "content-type": "application/json;charset=UTF-8",
        "cookie": "api_uid=rBQR7F1wo5oA8Faxr9j6Ag==; _nano_fp=XpdjnqEonqCYX0TyXC_osJc1EpPkOn2FgQXY2Ism; PASS_ID=1-KTZvXwIsowtfGioHNFvNJYuF1s1tRSO923JJQqCnAnILV2UVPJp4CZdqKt0IHcgusRBwZwvkZgSpClTZ9fhbQQ_315713181_29566664; JSESSIONID=4921FB287BCCBB42A50C262DD515334E",
        "origin": "https://mms.pinduoduo.com",
        "user-agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537."
}

# 配置请求地址列表
urls = [

    'https://www.baidu.com/',
    'https://www.sina.com.cn/',
    'http://www.sohu.com/',
    'https://www.qq.com/',
    'https://www.163.com/',
    'https://www.taobao.com/'

]

